package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.to.ware.WareOrderTo;
import com.atguigu.gmall.model.to.ware.WareSplitVo;
import com.atguigu.gmall.model.vo.order.OrderConfirmVo;
import com.atguigu.gmall.model.vo.order.OrderSubmitVo;

import java.util.List;

public interface OrderService {
    OrderConfirmVo getCartConfirmList();
    public Boolean checkToken(String token);

    public String generateToken();

    Long submitOrder(String tradeNo, OrderSubmitVo orderSubmitVo);


    Long saveOrder(OrderSubmitVo orderSubmitVo);
    //检查数据库订单状态和支付宝状态
    void checkOrderStatus(String outTradeNo);

    List<WareOrderTo> OrderSplit(WareSplitVo wareSplitVo);

    void updateStatusByStock(Long orderId, ProcessStatus newProcessStatus);
}
